package com.sky.service;

import com.sky.dto.OrdersCancelDTO;
import com.sky.dto.OrdersConfirmDTO;
import com.sky.dto.OrdersPageQueryDTO;
import com.sky.dto.OrdersPaymentDTO;
import com.sky.dto.OrdersRejectionDTO;
import com.sky.dto.OrdersSubmitDTO;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;
import com.sky.vo.TurnoverReportVO;
import org.springframework.web.bind.annotation.RequestBody;

import java.time.LocalDate;

/**
 * @Description: 订单管理接口
 *
 * @author: nianqiang
 * @Version: V1.0
 */
public interface OrderService {

		/**
		 * 下单
		 * @param ordersSubmitDTO
		 * @return
		 */
		public OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);

		/**
		 * 条件搜索订单
		 * @param ordersPageQueryDTO
		 * @return
		 */
		PageResult conditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);


		/**
		 * 用户端订单分页查询
		 * @param page
		 * @param pageSize
		 * @param status
		 * @return
		 */
		PageResult pageQuery4User(int page, int pageSize, Integer status);


		/**
		 * 营业额统计
		 * @param begin
		 * @param end
		 * @return
		 */
		TurnoverReportVO turnoverStatistics(LocalDate begin, LocalDate end);
}
